<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    
</head>
<body>    
    <script src="https://cdn.jsdelivr.net/npm/vue"></script>
    <div id="app">
        {{message}}
    </div>
    
    <script>      
        var app=new Vue({
            el:'#app',
            data:{
                message:"Hello,Word"
            }
        })
    </script>
<div id="app2">
        <ul>
            <li v-for="s in student">{{s.name}}</li>
            <span v-bind:title='message'></span>
        </ul>
    </div>
    <script>
        var app2=new Vue({
            el:'#app2',
           data:{
            student:[
                {name:'周一帆'},
                {name:'老黑'}
            ],
            message:'You loaded this page on ' + new Date().toLocaleString()
           } 
                       
        })
    </script>

 <div id="app">
        <div v-if=" role == 'admin' || role == 'super_admin' ">您好;admin</div>
    </div>
<script>
   
var vm = new Vue({
    el:"#app",
    data:{
        role:"super_admin",
    }
});
</script>



</body>
</html>